package org.example.designpattern.state;

public class LightOffState implements LightState{

    @Override
    public void on(LightContext lightContext) {
        System.out.println("开灯");
        lightContext.setState(lightContext.getOnState());

    }
    @Override
    public void off(LightContext lightContext) {
        System.out.println("灯早就关了");
    }

}
